/*
 * hardware.c
 *
 *  Created on: Sep 13, 2013
 *      Author: Ken Arok
 */

#include "config_board.h"

#if BOARD_2_1_USED

#include "board.h"
#include "tc.h"
#include "twi.h"
#include "hardware.h"


void hardware_init(void)
{
	twi_master_options_t _i2c_opt;
	_i2c_opt.speed = 100000;

	/* Initialize board. */
	board_init();
	/* Initialize Timer/Counter. */
	timer_counter_init();
	/* Initialize I2C Hardware Abstraction. */
	twi_master_setup(&_i2c_opt);
}



#endif /* BOARD_1_0_USED */
